/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package tests.clientData;

import org.junit.After;
import org.junit.AfterClass;
import org.junit.Before;
import org.junit.BeforeClass;
import org.junit.Test;

import clientData.ForumData;
import clientData.MemberData;
import clientData.MemberDataInt;
import static org.junit.Assert.*;

/**
 *
 * @author iziko
 */
public class ForumDataTest {

    MemberData  mem;
    ForumData  instance ;

    public ForumDataTest() {
    }

    @BeforeClass
    public static void setUpClass() throws Exception {
    }

    @AfterClass
    public static void tearDownClass() throws Exception {
    }

    @Before
    public void setUp() {
         mem = new MemberData(1,"iziko","iz@mail","izik","orgad");
        instance = new ForumData(1,"forumTest1",mem);
    }

    @After
    public void tearDown() {
    }

    /**
     * Test of getId method, of class ForumData.
     */
    @Test
    public void testGetId() {
        System.out.println("getId");
        int expResult = 1;
        int result = instance.getId();
        assertEquals(expResult, result);
    }

    /**
     * Test of getName method, of class ForumData.
     */
    @Test
    public void testGetName() {
        System.out.println("getName");
        String expResult = "forumTest1";
        String result = instance.getName();
        assertEquals(expResult, result);
    }

    /**
     * Test of getCreator method, of class ForumData.
     */
    @Test
    public void testGetCreator() {
        System.out.println("getCreator");
        MemberDataInt expResult = mem;
        MemberDataInt result = instance.getCreator();
        assertEquals(expResult, result);
    }

}